package pl.easyshop.core.common.validation.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.ReportAsSingleViolation;

import pl.easyshop.core.common.validation.validator.NotBlankValidator;


@Target( { ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = NotBlankValidator.class)
@ReportAsSingleViolation
@Documented
public @interface NotBlank {

	String message() default "validation.message.field.isblank";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default { };	
	
}

